package com.hotelvip.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 地区属性属性
 */
@Data
@TableName(value = "ht_region")
@ApiModel(value = "region对象",description = "地区选择")
public class Region {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id",name = "id")
    private Integer id;

    @ApiModelProperty(value = "name",name = "区域名称")
    private String name;

    @ApiModelProperty(value = "isParent",name = "是否为父类")
    private Boolean isParent;

    @ApiModelProperty(value = "parentId",name = "父节点id")
    private Integer parentId;

    @ApiModelProperty(value = "sort",name = "排序指数,越小越靠前")
    private Integer sort;


}
